package com.zretc.dao;

import com.zretc.entity.Pig;

public class AnimalFactory {

	public static Object getInstance(String type) {
		if ("Pig".equalsIgnoreCase(type)) {
			return new Pig();
		}
		return null;
	}

}
